import org.junit.Test;
import org.nf.order.model.Order;
import org.nf.order.service.OrderService;
import org.nf.order.service.impl.OrderServiceImpl;
import org.nf.order.util.PageUtils;
import org.nf.order.vo.PageVO;

import java.util.List;

public class test2 {
    @Test
    public void counatTest(){
        OrderService service = new OrderServiceImpl();
        PageVO<List<Order>> pageVO = service.listOrder(2, 10);
        System.out.println("总记录数: " + pageVO.getCount());
        pageVO.getData().forEach(city -> System.out.println(city.getProductName()));
    }
    public void pageTest(){
        OrderService service = new OrderServiceImpl();


    }
}
